cmake_minimum_required(VERSION 3.10)

project(dbus-test)

#find_package(dbus-1.0)
#find_package(glib-2.0)

include_directories(/usr/include/dbus-1.0)
include_directories(/usr/lib/x86_64-linux-gnu/dbus-1.0/include)
include_directories(/usr/include/glib-2.0)
include_directories(/usr/lib/x86_64-linux-gnu/glib-2.0/include)

add_executable(server dbus-server.c)
add_executable(client dbus-client.c)

target_link_libraries(server -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0)
target_link_libraries(client -lgio-2.0 -lgobject-2.0 -lglib-2.0)
